INF File Format

The new INF file format contains many types of named sections. Some of these are only used when installing device drivers and are not described in this document. For more information about these sections, see the DDK Programmer s Guide.

When you create an INF file, you do not have to include every type of section. The sections you use will depend on your installation procedure.

The setup functions use the following INF sections.

Add Registry16DRHS6

Contains information used to add subkeys or value names to the registry.

Copy Files94WX0.

Contains source filenames and can specify additional copying behavior.

Delete RegistryEH0E93

Contains information used to delete a subkey or value name from the registry.

Delete Files.O07.L

Contains the filenames of files to delete, and can specify additional deletion behavior.

DestinationDirsWKMUVK

Maps Copy Files94WX0. sections to a destination directory.

EventLog Install2WL8IIP

Contains information used to add an event message to the registry.

INI File to Registry16.7XX0

Contains information used to move lines or sections from an INI file to the registry.

Install3AN5O2

Contains a list of the INF sections that the setup functions process during the installation.

Rename Files2LKG_AQ

Contains the source and target filenames for renaming operations.

Service InstallJ_WXBF

Contains information used to install the service listed in the AddService key of the Services35YC3W5 section.

Services35YC3W5

Lists the services to add or install.

SourceDisksFiles3.PG0KP

Maps the source files to their source location.

SourceDisksNames8OLI7ZO

Assigns an ordinal value to the source disks and can store additional information about the source disks.

Strings22R4H3P

Maps string keys (values in the INF file surrounded by percent signs (%)) to replacement strings.

Update INI Fields1NH.LPL

Contains information used to replace, add, or delete fields in an INI entry.

Update INI FileCG5TFA

Contains information used to replace, add, or delete an INI entry.

Version1_NXEGQ

Contains information about the INF file.

 

The only section that must be included is the Version1_NXEGQ section. The setup functions use this section to recognize an INF file as formatted for Windows 95 and Windows NT.

Each section title in the INF file, must be enclosed by square brackets ([ ]). In general, you can specify the title for an INF section. The exceptions to this are the DestinationDirsWKMUVK, SourceDisksFiles3.PG0KP, SourceDisksNames8OLI7ZO, Strings22R4H3P, and Version1_NXEGQ sections. The titles of these sections must be identical to the section type. For example:

[DestinationDirs]

 

The SourceDisksNames8OLI7ZO and SourceDisksFiles3.PG0KP sections can be specified with a platform-specific suffix. The following example shows an Intel-specific SourceDisksNames section.

[SourceDisksNames.x86]

 

The setup functions programmatically determine the platform of the user s system. If the setup functions find platform-specific SourceDisksNames and SourceDisksFiles sections that match the user s platform, the setup functions use the platform-specific sections. Otherwise the setup functions use the default (non-suffixed) SourceDisksNames and SourceDisksFiles sections.

The formatting of lines in a section varies according with its type. For more information about the format of a particular section, see INF File Format ReferenceL61DAW.